<?php

/**
 * teachers actions.
 *
 * @package    academia_de_escritores
 * @subpackage teachers
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class teachersActions extends sfAeAction
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeIndex(sfWebRequest $request)
  {
    $this->forward('default', 'module');
  }
  
  public function executeShowAllByPublication(sfWebRequest $request){
    $Publication=PublicationTable::findOneById($request->getParameter("publication_id"));
    $this->forward404Unless($Publication);
    $this->Teachers=$Publication->getTeachers();
  }
}
